package com.ruoyi.park.service.impl;

import java.util.List;
import com.ruoyi.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.park.mapper.WLogisticsParkInfoMapper;
import com.ruoyi.park.domain.WLogisticsParkInfo;
import com.ruoyi.park.service.IWLogisticsParkInfoService;

/**
 * 园区信息Service业务层处理
 * 
 * @author wzy
 * @date 2024-09-01 18:33:13
 */
@Service
public class WLogisticsParkInfoServiceImpl implements IWLogisticsParkInfoService 
{
    @Autowired
    private WLogisticsParkInfoMapper wLogisticsParkInfoMapper;

    /**
     * 查询园区信息
     * 
     * @param logisticsParkId 园区信息主键
     * @return 园区信息
     */
    @Override
    public WLogisticsParkInfo selectWLogisticsParkInfoByLogisticsParkId(Long logisticsParkId)
    {
        return wLogisticsParkInfoMapper.selectWLogisticsParkInfoByLogisticsParkId(logisticsParkId);
    }

    /**
     * 查询园区信息列表
     * 
     * @param wLogisticsParkInfo 园区信息
     * @return 园区信息
     */
    @Override
    public List<WLogisticsParkInfo> selectWLogisticsParkInfoList(WLogisticsParkInfo wLogisticsParkInfo)
    {
        return wLogisticsParkInfoMapper.selectWLogisticsParkInfoList(wLogisticsParkInfo);
    }

    /**
     * 新增园区信息
     * 
     * @param wLogisticsParkInfo 园区信息
     * @return 结果
     */
    @Override
    public int insertWLogisticsParkInfo(WLogisticsParkInfo wLogisticsParkInfo)
    {
        wLogisticsParkInfo.setCreateTime(DateUtils.getNowDate());
        return wLogisticsParkInfoMapper.insertWLogisticsParkInfo(wLogisticsParkInfo);
    }

    /**
     * 修改园区信息
     * 
     * @param wLogisticsParkInfo 园区信息
     * @return 结果
     */
    @Override
    public int updateWLogisticsParkInfo(WLogisticsParkInfo wLogisticsParkInfo)
    {
        wLogisticsParkInfo.setUpdateTime(DateUtils.getNowDate());
        return wLogisticsParkInfoMapper.updateWLogisticsParkInfo(wLogisticsParkInfo);
    }

    /**
     * 批量删除园区信息
     * 
     * @param logisticsParkIds 需要删除的园区信息主键
     * @return 结果
     */
    @Override
    public int deleteWLogisticsParkInfoByLogisticsParkIds(Long[] logisticsParkIds)
    {
        return wLogisticsParkInfoMapper.deleteWLogisticsParkInfoByLogisticsParkIds(logisticsParkIds);
    }

    /**
     * 删除园区信息信息
     * 
     * @param logisticsParkId 园区信息主键
     * @return 结果
     */
    @Override
    public int deleteWLogisticsParkInfoByLogisticsParkId(Long logisticsParkId)
    {
        return wLogisticsParkInfoMapper.deleteWLogisticsParkInfoByLogisticsParkId(logisticsParkId);
    }
}
